using System;

namespace CStock
{
    public class RegExStructuresYahooIndexData
	{
		

        string indexName;
        string indexDetails;
        string tableBlock;
        string changeInPercent;
      
		/// <summary>
		/// 
		/// </summary>
        public RegExStructuresYahooIndexData()
		{

            tableBlock = @"(?s)<tr><td.nowrap=.nowrap..align=.left..colspan=.2.>(?<1>.*?)</tr></table></td></tr></table><";

            indexName = @"<td.width=.25...nowrap=.nowrap..align=.left..class=.yfnc_tabledata1.>(?<1>.*)</td>";
            indexDetails = @"<b>(?<1>.*)</b>";
            changeInPercent = @"\((?<1>.*)%";

                //S&P: http://uk.finance.yahoo.com/q/cp?s=^GSPC
            //http://de.finance.yahoo.com/q/cp?s=%5EDJI

            
			
			
		}


        public string IndexName
         {
             get
             {
                 return this.indexName;
             }
             set
             {
                 indexName = value;
             }

         }
        public string TableBlock
        {
            get
            {
                return this.tableBlock;
            }
            set
            {
                tableBlock = value;
            }

        }
        public string IndexDetails
        {
            get
            {
                return this.indexDetails;
            }
            set
            {
                indexDetails = value;
            }

        }
        public string ChangeInPercent
        {
            get
            {
                return this.changeInPercent;
            }
            set
            {
                changeInPercent = value;
            }

        }
	

	}
}
